class Person
{
	String name;
	Integer age;
	Date birth;
	String gender;
	String address;
	String memo;
	
	static constraints=
	{
		name(maxSize:50, blank:false)
		gender(inList:['f','m'], maxSize:4, nullable:true)
		age(nullable:true, validator:{it>3})
		birth(nullable:true);
		address(maxSize:100, nullable:true);
		memo(maxSize:255, nullable:true)
	}
}